Working on authentication.

Probably not working yet. In testing mode.