exam schedule function: add form validator