public static boolean login(String username, String pass){
		
		Employee bean = new Employee();
		bean.setUsername(username);	
		bean = (Employee)DatabaseProcess.getRow(bean);
		
		//if username cannot be found in the database
		if(bean == null){
			System.out.println(username+" not found!");
			return false;
		}
		if(bean.getUsername().equals(username)&&bean.getPass().equals(pass)){
			Gui.setCurrentUser(bean);
			return true;
		}
		System.out.println("incorrect username and password combination");
		return false;
	}