move login to the front of everything