fixed user login bug (hopefully)