Forms now correctly validate inputs