changed check_login for username