fix merge issue
remove checkIfLogged
Merge pull request #1515 from dotcloud/rework_auth_push

* Registry: Improve auth push