added validations, edit still won't work