adding validations for rails_admin interface
fixing errors when accessing the main page of respective modules