Applying redirect after login