Implemented login(), checklogin()