added more login functionality