Fixed sign in routes so pages are only downloaded once