Rudimentary password checking on server and client
Show/hide the success and failure divs