Changed user controller code