fixed login problem
applying possible fix for login