modifed login function to handle the case when wireless controller prompt is returned