fixing leavedata and student registration