adding validation to member form