Fix to user login (incorrect variable)