Add authentication hook in users controller for edit, update. Amend tests