fixed redirect after login
fixed error when TESTING_STATE is False