further implementation of user controller and model