Added error pages, fix logout

Signed-off-by: Victor Zagnitko <victor.zagnitko@yandex.ru>