How to lock the form fields on edit?