Update login.php

Changed the "password" attribute to "pwd" in the sql queries. Removed redundant queries.