Changed angular validation to be done in the controller as it does not want to work in the form