additional check of user logged in or not