moved php code to php file
added ablity to verify hashed passwords