Adds edit functionality for users