added functionality so users cannot edit each others details and also they must be logged in before they can access any of the edit pages.