Fixing login issue, adding check to make sure payments are not double processed.