add snippet for user redirect after login