added css for password error alert
added password error alert box
redirect to ?error if passwd wrong
tidied up