Fixed some form bugs.