added possibility to check authentication