added custom routes for register login and logout