Form touch-ups

style touch-ups for forms, and fixed some php notices in functions.