fixed creation of DTO object if the object is null, for example, after
retrieval of the object from the database.
user login functionality with project selection.