Rebuild / Refactor: Add server- and client-side form validation for signin