fix login routing