fixed errors in form