added the login with the database.

TO DO the creation of new profiles without being connected to
smartfoxserver.