Created authenticate class and added it to init.php
Removed check dropbox dir from init file