Client side so they get immediate feedback, nice error indicators and etc.
Server side for other/ additional checks.