Fixed error in user controller