added routes and logincheck (concept)