built controller and completed user model