MVC: Rewrote Functions login and submit