http://stackoverflow.com/questions/21275399/login-page-on-different-domain/21278878