Switch login page to using flexbox