CreateRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for call

Options
Hello, I'm developing a Unity Game which uses the Photon Engine. I'm facing an error upon connecting the first time, the game doesn't create or join a room. But upon force quitting the game, and starting it again, the game can successfully join a random room upon clicking the "Join a Room" button.

"CreateRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for call"

I have attached screen shots of my code which we're using.

https://ibb.co/tDWSQWm
https://ibb.co/ckvfNM8
https://ibb.co/rff8zLw
https://ibb.co/WKZRhVL
https://ibb.co/ynkT1BS

Here's a screen shot from my Logs of my Unity Game
https://ibb.co/SngqWTM

Thanks, any help would be huge.