Login functionality done.