added a validation function and commented CSS