Added logged in authentication