added authentication, everithing works fine