added a lot of code to password.php

added ifs, password form type, and file reading abilities