Refactored login page to use base tempalte.