implemented basic user controller.