Refactored login and reg pages, added html5 shivJS