Refactored login page to work with Foundation