added authentification functionality