Fixed the login method and cleaned it up some more;
i found a bug in the login method but that's fixed so all is good.
I also removed some dead code so it should be much easier to read.
fixed login method and added print statements where we have not yet implemented
message posting and browsing methods