removing console.log from login in bst and adding example of closure