Update index.php

Index updated to display login error messages and displaying a
successful user login