Fixed duplicate function name 'login'