more improvements to login