Solved trouble with authentication