added more checks to the POST Email/Password example script