Changed login to NSURLCredential