added enrolment functionality with validation