Simple PHP password strength test (REST web service)