Added support for loggin in [Issue #1]