Improved the get_user function
Fixed the PHP error undefined function get_userid_from_email()