Getting username from window