Compute login successPage using a function.
Updated readme