Added validations in controller for REST API
Added tabs