added password verification stuff
moved javascript into if statement
put endline back
Merge pull request #4 from optopus/add-password-verification

added password verification stuff