refactoried modal
added extra user_id for unique field value checking
renamed app => modal