i have tried the login/register video with OOP on Thenewboston i have completed all 23 videos but i dont know what the heck is wrong with my register page its not flashing and not redirecting to the right session of logged in users, can anybod help me ?

here is the whole code: http://stackoverflow.com/questions/28262976/flash-message-is-not-showing-in-php