Added authorization and the possibility to edit the user