Fixing incorrect user class variable in login process