def form_auth_name(message):
chek_login = message.text
if not str(chek_login) == db.auth_user_form(message.text):
mess = bot.send_message(message.chat.id, 'Неверный логин')
bot.register_next_step_handler(mess, form_auth_name)
else:
mess = bot.send_message(message.chat.id, 'Введите свой пароль.')
bot.register_next_step_handler(mess, form_auth_password)