afterlogin added in to jquery template