model validations + working edit text