added devise:user and added resources column to notes model