My sign in code called activation is the script called activation.php. my login page is login.php and my profile page is the landing page once a successful login in attempt is made. the activation.php is the issue as i us the form in sign.php to login but the activation.php doesn't redirect me to the sign in page once a fail attempt is made or it doesn't redirect me to my profile page once a successful login in attempt is made.
The following link has the code: https://gist.github.com/anonymous/34bbfdc2ad3e13942ff3bb7ebf11c410
where is it going wrong?