I fixed the issue with log in; added close button and set the log in frame to always be on top; removed action listener for the log in button from main frame once clicked, otherwise it creates new login frame every single time u click the button and pills them up on top of each other