Updates to login algorithm for optimisation. Edit Invoice rearrange prior to tax additions.