Implemented log in and log out from the system. Works like a charm.

- By now, it's working but it needs to be improved.