adding a beginning level of validation. Need a lot more validation on both
the server and client side.