modified login to easily switch to localhost