added login and routing