added users authorization
added session
changed login method
modified the work with cookies