PHP MySQL Secure Login Page

Login page is basically a page having several fields that the user provide in order to get access of the home page of that site. if there is a previously registered user whose details are stored in the database and that particular user want to login then the details provided by him on the login page are cross checked with the fields in the database respectively. if the details are found to be correct the user is considered to be a valid user.