Add updating users and authorization function.