input are now is populated with current information, added authentication for edit page