Adds login/logout view
First reasonable working version.