Working signin/registration/signout with dynamic links