add option for redirect after login