Only log in if you need to add or edit data.