Issue#565 login

references #565