Update local.js to incorp flash for "email exists"

These changes show a flash message to the user when he attempts to register with an already registered email. As per suggestion in #28