added login functionality to gui