add patch for admin forms

#279
hack the admin login form too

#279
code cleanup

lines, indents