config routes for states main and user, login -> user