Added login functionality to GUI