add user logged in check