user login now works fine