added validation and tests for our form