validating attributes in account update