replaced fetchusername() to redirect(0)