made handling error and other messages modular (function lives in template)
registration page now scrolls to err messages (regardless of screensize