use get_user_by instead of the depracated get_userdatabylogin