Validating input for Manage Leave