added validation/ save

save not working yet