register basic validation