I\'m creating a code where I need to send to a RESTFUL API a user and password and if the user has access, the WordPress pages will be loaded else the user will be redirecte