added age validation to registration

error messages in reg form also now disappear when close is clicked