basic validation
Basic client-side validation