Add logic to login.