edit done

added edit funtionality
add logic

added basic validation and logic