Login route started

It now gets the period info from MySQL and displays it just like the old API