fix problem in basecontroller with enityname
add validations on entities