added error handling when initiating wordpress connection
added local storage for login credentials