fixed upgrade to ios6 issues and domain for login