Added login, liked command to client.

Modified preloop function so the client try to log in on start by using config file info if not empty(Not quite sure if it's the right place to do so...).