Added login functionality inside GUI