Updated the authentication part

Now the authentication process is deeply integrated with the ember stack