modified login to use in contacts.php too