added Login functionality (needs to be fixed still)