Fixed crud operations. Added some validators for input.