Fixed login flow

Got the log in page working.