Added edit, delete and index function for users.