Restructured the layout to distinguish between normal and message pages.
Implemented password resetting.