moved
login function made more useful, and amazon example working