Thanks for writing in!
A better and easier to use/implement solution that I would suggest you is our Under Construction Plugin that comes bundled with Pro Theme. It can be installed from Pro > Validation > Extensions. You can customize the appearance of under construction page as per your requirement. Under Construction plugin also comes with options to enter password to bypass the page. To learn more, please take a look at following resource.