added validation to 'C'
refactored permisos