Added functionality for editing and deleting users