Created custom routes for login, logout and register.