adding angular validation
with this addition now we have client side and server side validations