It's not MVC, but at least it's the right direction. Login and register work.