Added form validation to the login page and added password encryption for the users

added form validation to the initial login page(index.php), and added password encryption to users.php