Invalid login successfully fails to work