refactored oauth.php and implemented it in the website