added  format,uniqueness and presence validation, also presence of  and  are verified