added error class and post form