added in logged-in check for enabling the save button