adds redirect to / if login closed b4 login