adding views for valid and invalid form submissions. fixing bugs in database connectivity