change message to alert

on a bad login the flash message is blue but should be red indicating
 an error.  Did a little cleanup as well
make server validation reasonable

Checked and fixed all serverside validation for forms in metridoc-core

relates to Issue #19
Merge pull request #55 from metridoc/serverside-validation

Serverside validation