Changes to JS-based verification system

Styled error messages (and failed), added password verification

This will probably be my last git commit for the next couple of days or so. What I've done here is extremely buggy, so feel free to push fixes and the like. ~@tyxchen