Changed function names to login