Added login functional
Completed Issue #30