fixed issue where a user could not edit their leave requests