validating mandatory fields
server side validation