Work in progress : login step

Allowing cross domain request and indenting code.
TODO : need to be refacto and cleaned