moved login process to Controller\Login