Moving Controller\Login logic into model - #35