fixed typo in withErrors
use input() instead of get() to retrieve POST data