lab9.1 Tested functions in user controller. All are working properly