Added appropriate error handling client and server side.