redirect ot main after login