removed built in validation, added pattern