Added redirect on login failure when hash is not set