Check for existence of loginRedirect option before using.