Changed function name retrieve to login.