Added validations and unit tests for rental