Making login working, and having dynamic URL