created the verification if the user login or no and on this basis if he
can save some changes. Also modified tests in accordance with changes in
the project.