Disallowing validate callback from url and improving check