Fixed some errors in the userModule in the login function