fixed progress view for logging in to disappear when incorrect credentials are shown
added test code to get purchase objects for a user