Added permissions validation to edit account