Authentication fix

Issue with remembering a user, despite their login failing, resulting in an error.