Validation for edit properties and login