Added form login and session management. Fix view layouts
Restored application layout deleted.