[NF] Add method for login.