update css class names
code review tweaks
change error messages to use flash