Implementation of an authentication process.

* Note *
This commit still being implemented.
Handle authentication response