Cleaned up login in page

Ref #4 and #5
Cleaned up login page, added a base layout for secured pages changed the
encryption method