I think the issue is the dollar sign in the database password.
You also had the server configured to display errors and warnings, so the deprecated mysql message was being written to the page before the redirect and that caused the redirect to fail.
You also had a blank line of code on members.php on line 11.
I corrected these three issues and the login seems to work now.