migrate to user controller