Changed redirect from login to profile.php