ensure modal login stores last post by slug