added field types; error messages style changed
added validation for mandatory fields