Prevent reload when logging in