fix bug in static method of UserLoginAttempt