added rudimentary login mechanics