adding validation of discipline before returning page