Login functionality implemented.