Instead of having checks on both the server and client for valid data, just do checks on the server.
On the client I think we should just do minimal checks like, 'make sure that user entered a non-blank string > 0'.
Especially for the account creation code, it does not make sense to check a valid password on both the client and the server. Or a valid email on both the client and the server.
If we people want to use different clients, it is much better to do all the data validity checks on the server.
Instead of having checks on both the server and client for valid data, just do checks on the server. On the client I think we should just do minimal checks like, 'make sure that user entered a non-blank string > 0'. Especially for the account creation code, it does not make sense to check a valid password on both the client and the server. Or a valid email on both the client and the server. If we people want to use different clients, it is much better to do all the data validity checks on the server.