moved userInfo.php into helper functions.
moved autoloader into helper functions
moved error handle into helper functions