added redirect to after login feature