redirect to /login when visiting board.php