private static boolean modifyEmployee(Employee bean, PreparedStatement stmt, String field) throws SQLException{
		
		String sql = "UPDATE employees SET "+field+"= ? WHERE username = ?";
		stmt = conn.prepareStatement(sql);
		
		if(field.toLowerCase().equals("pass"))
			stmt.setString(1, bean.getPass());
		if(field.toLowerCase().equals("phone"))
			stmt.setString(1, bean.getPhone());
		if(field.toLowerCase().equals("address"))
			stmt.setString(1, bean.getAddress());
		if(field.toLowerCase().equals("email"))
			stmt.setString(1, bean.getEmail());
		if(field.toLowerCase().equals("position"))
			stmt.setString(1, bean.getPosition());
		stmt.setString(2, bean.getUsername());
			
		int affected = stmt.executeUpdate();
		if (affected == 1) {
			System.out.println("employee info updated");
			return true;
		} else {
			System.out.println("error: no update applied");
			return false;
		}
	}