Implemented login().