angular validation implemented