Add condition for redirect after login