Bug fix to login user