Validate inputs client-side also