LPS-51095 Take a note of previous login ip before overwriting it with current ip and then use that IP for lastLoginIP