Changes in login() method.