implemented error checking for reservation page