-Added a function to tell the parent window about the logged in user