fixed a couple of errors in functions.php(bookRoom function)