fix bugs of modify employee

add try catch to add employee