added devise auth, user model,and included user_id to invoces