validation

changed the things that were suggested by the validator