JS controller fixes, server-side validation.