add functions to login controller