Leave request validation and minor stuff