Moved User from controller package to model