Replaced manual checks with assert() in user controller.