Formatting and errors implemented on client side