Fixed logout action
Merge pull request #17 from brian978/improvement/mvc-arch

Refactored some code