`get_userdatabylogin()` is deprecated. You should use `get_user_by()` instead.