Fixes a bug where an error is shown if 'remember me' is left unchecked