Edit login function, generate token.