Form Error Handling

Signed-off-by: cocolekat <cocolekat@gmail.com>