Implemented user login in gui