create separate method like _validate_registration and do all validation there.