added age validation to registration page