Changed the Constructors and added toString method for objects

The toString() will be used for writing the object on a file as an
string.
also added a test users on the login.