Logic for editing an already existing task implemented.