set up validations and wrote some unit tests